﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000121 RID: 289
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class BCGBCCNKFDN : IMessage<BCGBCCNKFDN>, IMessage, IEquatable<BCGBCCNKFDN>, IDeepCloneable<BCGBCCNKFDN>, IBufferMessage
	{
		// Token: 0x170003F5 RID: 1013
		// (get) Token: 0x06000D48 RID: 3400 RVA: 0x000281AC File Offset: 0x000263AC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<BCGBCCNKFDN> Parser
		{
			get
			{
				return BCGBCCNKFDN._parser;
			}
		}

		// Token: 0x170003F6 RID: 1014
		// (get) Token: 0x06000D49 RID: 3401 RVA: 0x000281B3 File Offset: 0x000263B3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return BCGBCCNKFDNReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170003F7 RID: 1015
		// (get) Token: 0x06000D4A RID: 3402 RVA: 0x000281C5 File Offset: 0x000263C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return BCGBCCNKFDN.Descriptor;
			}
		}

		// Token: 0x06000D4B RID: 3403 RVA: 0x000281CC File Offset: 0x000263CC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BCGBCCNKFDN()
		{
		}

		// Token: 0x06000D4C RID: 3404 RVA: 0x000281D4 File Offset: 0x000263D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BCGBCCNKFDN(BCGBCCNKFDN other) : this()
		{
			this.scepterId_ = other.scepterId_;
			this.level_ = other.level_;
			this.totalDamage_ = other.totalDamage_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06000D4D RID: 3405 RVA: 0x00028211 File Offset: 0x00026411
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public BCGBCCNKFDN Clone()
		{
			return new BCGBCCNKFDN(this);
		}

		// Token: 0x170003F8 RID: 1016
		// (get) Token: 0x06000D4E RID: 3406 RVA: 0x00028219 File Offset: 0x00026419
		// (set) Token: 0x06000D4F RID: 3407 RVA: 0x00028221 File Offset: 0x00026421
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScepterId
		{
			get
			{
				return this.scepterId_;
			}
			set
			{
				this.scepterId_ = value;
			}
		}

		// Token: 0x170003F9 RID: 1017
		// (get) Token: 0x06000D50 RID: 3408 RVA: 0x0002822A File Offset: 0x0002642A
		// (set) Token: 0x06000D51 RID: 3409 RVA: 0x00028232 File Offset: 0x00026432
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x170003FA RID: 1018
		// (get) Token: 0x06000D52 RID: 3410 RVA: 0x0002823B File Offset: 0x0002643B
		// (set) Token: 0x06000D53 RID: 3411 RVA: 0x00028243 File Offset: 0x00026443
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public double TotalDamage
		{
			get
			{
				return this.totalDamage_;
			}
			set
			{
				this.totalDamage_ = value;
			}
		}

		// Token: 0x06000D54 RID: 3412 RVA: 0x0002824C File Offset: 0x0002644C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as BCGBCCNKFDN);
		}

		// Token: 0x06000D55 RID: 3413 RVA: 0x0002825C File Offset: 0x0002645C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(BCGBCCNKFDN other)
		{
			return other != null && (other == this || (this.ScepterId == other.ScepterId && this.Level == other.Level && ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.Equals(this.TotalDamage, other.TotalDamage) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06000D56 RID: 3414 RVA: 0x000282C0 File Offset: 0x000264C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.ScepterId != 0U)
			{
				num ^= this.ScepterId.GetHashCode();
			}
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.TotalDamage != 0.0)
			{
				num ^= ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(this.TotalDamage);
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06000D57 RID: 3415 RVA: 0x0002833C File Offset: 0x0002653C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06000D58 RID: 3416 RVA: 0x00028344 File Offset: 0x00026544
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06000D59 RID: 3417 RVA: 0x00028350 File Offset: 0x00026550
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ScepterId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.ScepterId);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Level);
			}
			if (this.TotalDamage != 0.0)
			{
				output.WriteRawTag(25);
				output.WriteDouble(this.TotalDamage);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06000D5A RID: 3418 RVA: 0x000283D0 File Offset: 0x000265D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.ScepterId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScepterId);
			}
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.TotalDamage != 0.0)
			{
				num += 9;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06000D5B RID: 3419 RVA: 0x0002843C File Offset: 0x0002663C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(BCGBCCNKFDN other)
		{
			if (other == null)
			{
				return;
			}
			if (other.ScepterId != 0U)
			{
				this.ScepterId = other.ScepterId;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.TotalDamage != 0.0)
			{
				this.TotalDamage = other.TotalDamage;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06000D5C RID: 3420 RVA: 0x000284A9 File Offset: 0x000266A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06000D5D RID: 3421 RVA: 0x000284B4 File Offset: 0x000266B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 8U)
				{
					if (num != 16U)
					{
						if (num != 25U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.TotalDamage = input.ReadDouble();
						}
					}
					else
					{
						this.Level = input.ReadUInt32();
					}
				}
				else
				{
					this.ScepterId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040005B0 RID: 1456
		private static readonly MessageParser<BCGBCCNKFDN> _parser = new MessageParser<BCGBCCNKFDN>(() => new BCGBCCNKFDN());

		// Token: 0x040005B1 RID: 1457
		private UnknownFieldSet _unknownFields;

		// Token: 0x040005B2 RID: 1458
		public const int ScepterIdFieldNumber = 1;

		// Token: 0x040005B3 RID: 1459
		private uint scepterId_;

		// Token: 0x040005B4 RID: 1460
		public const int LevelFieldNumber = 2;

		// Token: 0x040005B5 RID: 1461
		private uint level_;

		// Token: 0x040005B6 RID: 1462
		public const int TotalDamageFieldNumber = 3;

		// Token: 0x040005B7 RID: 1463
		private double totalDamage_;
	}
}
